package com.yida.system.api.domain;

import java.math.BigDecimal;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yida.common.core.annotation.Excel;
import com.yida.common.core.web.domain.BaseEntity;

/**
 * 系统黑名单配置对象 sys_black_config
 * 
 * @author wws
 * @date 2023-03-22
 */
public class SysBlackConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 访问次数 */
    @Excel(name = "访问次数")
    @ApiModelProperty("访问次数")
    private Long visits;

    /** 访问时间间隔（秒） */
    @Excel(name = "访问时间间隔", readConverterExp = "秒=")
    @ApiModelProperty("访问时间间隔（秒")
    private Long visitInterval;

    /** 锁定时长（分钟） */
    @Excel(name = "锁定时长", readConverterExp = "分=钟")
    @ApiModelProperty("锁定时长（分钟）")
    private BigDecimal lockTime;

    /** 状态（0：关闭；1：启用） */
    @Excel(name = "状态", readConverterExp = "0=：关闭；1：启用")
    @ApiModelProperty("状态（0：关闭；1：启用）")
    private String status;

    /** 删除标志(0：正常，1：删除) */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVisits(Long visits) 
    {
        this.visits = visits;
    }

    public Long getVisits() 
    {
        return visits;
    }
    public void setVisitInterval(Long visitInterval) 
    {
        this.visitInterval = visitInterval;
    }

    public Long getVisitInterval() 
    {
        return visitInterval;
    }
    public void setLockTime(BigDecimal lockTime) 
    {
        this.lockTime = lockTime;
    }

    public BigDecimal getLockTime() 
    {
        return lockTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("visits", getVisits())
            .append("visitInterval", getVisitInterval())
            .append("lockTime", getLockTime())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
